/*
 *  region.cpp
 *  wonderland-project
 *
 *  Created by Ben Nolan on 1/10/08.
 *  Copyright 2008 Nolan Consulting Limited. All rights reserved.
 *
 */

#include "headless.h"
#include "wonderland.h"

using namespace Ogre;

namespace Wonderland{
  Headless::Headless(){
  };

  void Headless::start(){
  }
  
  void Headless::initialize(){
		root_ = new Root(Wonderland::Locations::Resources() + "ogre-plugins.cfg", Wonderland::Locations::Resources() + "ogre-main.cfg", Wonderland::Locations::Resources() + "../wonderland.log");
		scene_manager_ = root_->createSceneManager(ST_GENERIC, "ExampleSMInstance");
	
		ResourceGroupManager::getSingleton().addResourceLocation(
			Wonderland::Locations::Resources() + "packs/OgreCore.zip", "Zip", "Bootstrap"
		);

		ResourceGroupManager::getSingleton().addResourceLocation(
			Wonderland::Locations::Resources() + "models", "FileSystem", "General"
		);
  }

}